<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui" class="no-js">

<ui:composition template="startTemplate.xhtml">

	<ui:define name="title">
		<h:outputText value="#{i18n.company}" />
	</ui:define>
	
	<ui:define name="content">
	
	<!-- **************************************** Dialog new company **************************************** -->
	
	<div class="span32">		
		<h:form id="newCompanyForm" prependId="false">				
								        
		    <p:dialog id="newCompanyDialog" header="#{i18n.newCompanyLabel}" widgetVar="newCompanyDlg" 
		    	dynamic="true" showEffect="clip" hideEffect="scale">
		    	<p:panelGrid id="newCompanyPanel" styleClass="span91">  				    
				    <p:row>  
	        			<p:column> 
							<h:outputLabel id="idCompanyLabel" for="idCompany"
								value="#{i18n.idCompanyLabel}" />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="idCompany" value="#{companyBean.companyNew.idCompany}">
								<f:passThroughAttribute name="required" value="true" />	
								<f:passThroughAttribute name="pattern" value="^[A-Z]{2}[-][A-Z]{1}[0-9]{3}$" />					
							</h:inputText>
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="companyNameLabel" for="companyName"
								value="#{i18n.companyNameLabel} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="companyName" value="#{companyBean.companyNew.name}">
								<f:passThroughAttribute name="required" value="true" />					
							</h:inputText>
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="companyStreetLabel" for="companyStreet"
								value="#{i18n.companyStreetLabel} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="companyStreet" value="#{companyBean.companyNew.street}" />							
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="companyNumberLabel" for="companyNumber"
								value="#{i18n.companyNumberLabel} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="companyNumber" value="#{companyBean.companyNew.number}" />							
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="companyBoxLabel" for="companyBox"
								value="#{i18n.companyBoxLabel} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="companyBox" value="#{companyBean.companyNew.box}" />							
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="companyZipCodeLabel" for="companyZipCode"
								value="#{i18n.companyZipCodeLabel} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="companyZipCode" value="#{companyBean.companyNew.zipCode}" />							
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="companyCityLabel" for="companyCity"
								value="#{i18n.companyCityLabel} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="companyCity" value="#{companyBean.companyNew.city}" />							
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="companyCountryLabel" for="companyCountry"
								value="#{i18n.companyCountryLabel} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="companyCountry" value="#{companyBean.companyNew.country}" />							
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="companyCommentsLabel" for="companyComments"
								value="#{i18n.commentsLabel} " />
						</p:column>
						<p:column styleClass="center">
							<p:inputTextarea id="companyComments" value="#{companyBean.companyNew.comments}" rows="3" cols="19" />
						</p:column>
					</p:row>
				</p:panelGrid>
			
				<p:panelGrid id="newPersonCompanyPanel" styleClass="span91">  
				    <f:facet name="header">  
				        <p:row>  
				            <p:column colspan="2">#{i18n.contact}</p:column>  
				        </p:row>  			        			        
				    </f:facet>			        
				    <p:row>  
	        			<p:column> 
							<h:outputLabel id="lastNameLabelForCompany" for="lastNameForCompany"
								value="#{i18n.lastNameLabel} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="lastNameForCompany" value="#{companyBean.person.lastName}">
								<f:passThroughAttribute name="required" value="true" />					
							</h:inputText>
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="firstNameLabelForCompany" for="firstNameForCompany"
								value="#{i18n.firstNameLabel} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="firstNameForCompany" value="#{companyBean.person.firstName}" />
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="emailLabelForCompany" for="emailForCompany"
								value="#{i18n.emailLabel} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="emailForCompany" value="#{companyBean.person.email}">
								<f:passThroughAttribute name="required" value="true" />	
								<f:passThroughAttribute name="type" value="email" />				
							</h:inputText>
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="emailLabel2ForCompany" for="email2ForCompany"
								value="#{i18n.emailLabel2} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="email2ForCompany"
								value="#{companyBean.person.email2}" />
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="phoneLabelForCompany" for="phoneForCompany"
								value="#{i18n.phoneLabel} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="phoneForCompany" value="#{companyBean.person.phone}" />							
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="gsmLabelForCompany" for="gsmForCompany"
								value="#{i18n.gsmLabel} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="gsmForCompany" value="#{companyBean.person.gsm}" />							
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="personCommentsLabelForCompany" for="personCommentsForCompany"
								value="#{i18n.commentsLabel} " />
						</p:column>
						<p:column styleClass="center">
							<p:inputTextarea id="personCommentsForCompany" value="#{companyBean.person.comments}" rows="3" cols="19" />
						</p:column>
					</p:row>				
					<f:facet name="footer">
			            <p:row>  
				            <p:column colspan="2" styleClass="center">
				                <p:commandButton id="newCompanyFormSubmit" action="#{companyBean.create}" value="#{i18n.add}" 
				                	update=":companyForm:companyGrowl :companyForm:dataTableAllCompany"
				                	oncomplete="newCompanyDlg.hide()" />				            		                				                
				                <p:commandButton id="resetCompanyForm" icon="ui-icon-arrowreturnthick-1-w" title="Reset" type="reset" />				                
				            </p:column>
						</p:row>
			        </f:facet>				
				</p:panelGrid>
			</p:dialog>
		</h:form>
					
		<!-- **************************************** Dialog new person **************************************** -->
		
		<h:form id="newPersonForm" prependId="false">  		
		    <p:dialog id="newPersonDialog" header="#{i18n.newPersonLabel}" widgetVar="newPersonDlg" 
		    	dynamic="true" showEffect="clip" hideEffect="scale">
				<p:panelGrid id="newPersonPanel" styleClass="span91"> 				    		        
				    <p:row>  
	        			<p:column> 
							<h:outputLabel id="lastNameLabel" for="lastName"
								value="#{i18n.lastNameLabel} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="lastName" value="#{personBean.personNew.lastName}">
								<f:passThroughAttribute name="required" value="true" />					
							</h:inputText>
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="firstNameLabel" for="firstName"
								value="#{i18n.firstNameLabel} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="firstName" value="#{personBean.personNew.firstName}" />
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="emailLabel" for="email"
								value="#{i18n.emailLabel} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="email" value="#{personBean.personNew.email}">
								<f:passThroughAttribute name="required" value="true" />	
								<f:passThroughAttribute name="type" value="email" />				
							</h:inputText>
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="emailLabel2" for="email2"
								value="#{i18n.emailLabel2} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="email2"
								value="#{personBean.personNew.email2}" />
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="phoneLabel" for="phone"
								value="#{i18n.phoneLabel} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="phone" value="#{personBean.personNew.phone}" />							
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="gsmLabel" for="gsm"
								value="#{i18n.gsmLabel} " />
						</p:column>
						<p:column styleClass="center">
							<h:inputText id="gsm" value="#{personBean.personNew.gsm}" />							
						</p:column>
					</p:row>
					<p:row>  
	        			<p:column> 
							<h:outputLabel id="personCommentsLabel" for="personComments"
								value="#{i18n.commentsLabel} " />
						</p:column>
						<p:column styleClass="center">
							<p:inputTextarea id="personComments" value="#{personBean.personNew.comments}" rows="3" cols="19" />
						</p:column>
					</p:row>				
					<f:facet name="footer">
			            <p:row>  
				            <p:column colspan="2" styleClass="center">
				                <p:commandButton id="newPersonFormSubmit" action="#{personBean.create}" 
				                	value="#{i18n.add}" oncomplete="newPersonDlg.hide()"
				                	update=":companyForm:companyGrowl, :companyForm:dataTableAllCompany" />
							</p:column>
						</p:row>
	       			</f:facet>				
				</p:panelGrid>				
			</p:dialog>	
		</h:form>
		
		<!-- **************************************** Company table **************************************** -->
			
		<h:form id="companyForm" prependId="false">	
			<p:growl id="companyGrowl" />
				
			<p:dataTable id="dataTableAllCompany" value="#{listBean.listCompany}" var="c">  			    
			    <f:facet name="header">
			    	<h:outputText value="#{i18n.listCompanyLabel}" />			    	
			    </f:facet>
			    <p:column style="width:2%">  
		            <p:rowToggler />		            	  
		        </p:column>  
			    <p:column headerText="#{i18n.idCompanyLabel}">  
		            <h:outputText value="#{c.idCompany}" />  
		        </p:column>
		        <p:column headerText="#{i18n.companyNameLabel}"> 		            
				    <h:outputText value="#{c.name}" /> 
		        </p:column>		
		        <p:column headerText="#{i18n.details}">  
		        	<p:commandLink id="companyLink" ajax="true"
		        		update=":detailCompanyForm:panelDetailCompany">		            	
		            	<h:outputText styleClass="ui-icon ui-icon-search" style="margin:0 auto;" /> 						 
						<f:setPropertyActionListener target="#{companyBean.companyView}" value="#{c}" /> 									          
				    </p:commandLink>   
		        </p:column>	
		        
		        <p:rowExpansion>  
		            <p:dataList id="dataListPersonByCompany" value="#{c.listPersons}" var="p" itemType="disc">
						<f:facet name="header">
							<h:outputText value="#{i18n.listPersonLabel}" />
						</f:facet>				
						<p:commandLink id="dataListPersonByCompanyLink" ajax="true"
							update=":detailPersonForm:panelDetailPerson, :updatePersonForm:updatePersonDialog">							
							<f:setPropertyActionListener target="#{personBean.personView}" value="#{p}" />
							<f:setPropertyActionListener target="#{personBean.company}" value="#{c}" />							
					        <h:outputText value="#{p.lastName} #{p.firstName}" />  
					    </p:commandLink> 
					    <f:facet name="footer">
							<p:commandButton id="showAddPerson" value="#{i18n.addPersonLabel}" icon="ui-icon-plus"
								update=":newPersonForm:newPersonDialog" oncomplete="newPersonDlg.show()">
								<f:setPropertyActionListener target="#{personBean.company}" value="#{c}" />
							</p:commandButton> 
						</f:facet>			         		    
					</p:dataList>  	  		
		        </p:rowExpansion>
		        
		        <f:facet name="footer">
			    	<p:commandButton id="showAddCompany" value="#{i18n.addCompanyLabel}" icon="ui-icon-plus"
						update=":newCompanyForm:newCompanyDialog" oncomplete="newCompanyDlg.show()" />
			    </f:facet>   
			</p:dataTable>  			
		</h:form>		
	</div>	
		
	<!-- **************************************** Company Details **************************************** -->
	
	<div class="span66">
		<div>	
			<h:form id="detailCompanyForm" prependId="false">
				<p:panel header="#{i18n.companyDetailLabel}" id="panelDetailCompany">
					<h:panelGrid columns="2">
						<h:outputLabel value="#{i18n.idCompanyLabel}" />
						<h:outputText value="#{companyBean.companyView.idCompany}" />
						
						<h:outputLabel value="#{i18n.companyNameLabel}" />
						<h:outputText value="#{companyBean.companyView.name}" />
						
						<h:outputLabel value="#{i18n.companyStreetLabel}" />
						<h:outputText value="#{companyBean.companyView.street}" />
						
						<h:outputLabel value="#{i18n.companyNumberLabel}" />
						<h:outputText value="#{companyBean.companyView.number}" />
						
						<h:outputLabel value="#{i18n.companyBoxLabel}" />
						<h:outputText value="#{companyBean.companyView.box}" />
						
						<h:outputLabel value="#{i18n.companyZipCodeLabel}" />
						<h:outputText value="#{companyBean.companyView.zipCode}" />
						
						<h:outputLabel value="#{i18n.companyCityLabel}" />
						<h:outputText value="#{companyBean.companyView.city}" />
						
						<h:outputLabel value="#{i18n.companyCountryLabel}" />
						<h:outputText value="#{companyBean.companyView.country}" />
						
						<h:outputLabel value="#{i18n.commentsLabel}" />
						<h:outputText value="#{companyBean.companyView.comments}" />
						
						<f:facet name="footer">
							<p:commandButton id="showUpdateCompany" value="#{i18n.update}" icon="ui-icon-wrench"
								action="#{companyBean.toggleUpdate}" oncomplete="updateCompanyDlg.show()"
								update=":updateCompanyForm:updateCompanyDialog" />
							<p:commandButton id="deleteCompanySubmit" value="#{i18n.delete}" icon="ui-icon-trash"
								action="#{companyBean.delete}" update=":companyForm:companyGrowl,
								:companyForm:dataTableAllCompany, :detailCompanyForm:panelDetailCompany" />
						</f:facet>
					</h:panelGrid>
				</p:panel>
			</h:form>
				
		<!-- **************************************** Dialog Company update **************************************** -->
				
			<h:form id="updateCompanyForm" prependId="false">
				<p:dialog id="updateCompanyDialog" header="#{i18n.updateCompanyLabel} #{companyBean.companyUpdate.name}"
					widgetVar="updateCompanyDlg" dynamic="true" showEffect="clip" hideEffect="scale">
			    	<p:panelGrid id="updateCompanyPanel" styleClass="span91">  					    				    
						<p:row>  
		        			<p:column> 
								<h:outputLabel id="companyNameLabelUpdate" for="companyNameUpdate"
									value="#{i18n.companyNameLabel} " />
							</p:column>
							<p:column styleClass="center">
								<h:inputText id="companyNameUpdate" value="#{companyBean.companyUpdate.name}">
									<f:passThroughAttribute name="required" value="true" />					
								</h:inputText>
							</p:column>
						</p:row>
						<p:row>  
		        			<p:column> 
								<h:outputLabel id="companyStreetLabelUpdate" for="companyStreetUpdate"
									value="#{i18n.companyStreetLabel} " />
							</p:column>
							<p:column styleClass="center">
								<h:inputText id="companyStreetUpdate" value="#{companyBean.companyUpdate.street}" />							
							</p:column>
						</p:row>
						<p:row>  
		        			<p:column> 
								<h:outputLabel id="companyNumberLabelUpdate" for="companyNumberUpdate"
									value="#{i18n.companyNumberLabel} " />
							</p:column>
							<p:column styleClass="center">
								<h:inputText id="companyNumberUpdate" value="#{companyBean.companyUpdate.number}" />							
							</p:column>
						</p:row>
						<p:row>  
		        			<p:column> 
								<h:outputLabel id="companyBoxLabelUpdate" for="companyBoxUpdate"
									value="#{i18n.companyBoxLabel} " />
							</p:column>
							<p:column styleClass="center">
								<h:inputText id="companyBoxUpdate" value="#{companyBean.companyUpdate.box}" />							
							</p:column>
						</p:row>
						<p:row>  
		        			<p:column> 
								<h:outputLabel id="companyZipCodeLabelUpdate" for="companyZipCodeUpdate"
									value="#{i18n.companyZipCodeLabel} " />
							</p:column>
							<p:column styleClass="center">
								<h:inputText id="companyZipCodeUpdate" value="#{companyBean.companyUpdate.zipCode}" />							
							</p:column>
						</p:row>
						<p:row>  
		        			<p:column> 
								<h:outputLabel id="companyCityLabelUpdate" for="companyCityUpdate"
									value="#{i18n.companyCityLabel} " />
							</p:column>
							<p:column styleClass="center">
								<h:inputText id="companyCityUpdate" value="#{companyBean.companyUpdate.city}" />							
							</p:column>
						</p:row>
						<p:row>  
		        			<p:column> 
								<h:outputLabel id="companyCountryLabelUpdate" for="companyCountryUpdate"
									value="#{i18n.companyCountryLabel} " />
							</p:column>
							<p:column styleClass="center">
								<h:inputText id="companyCountryUpdate" value="#{companyBean.companyUpdate.country}" />							
							</p:column>
						</p:row>
						<p:row>  
		        			<p:column> 
								<h:outputLabel id="companyCommentsLabelUpdate" for="companyCommentsUpdate"
									value="#{i18n.commentsLabel} " />
							</p:column>
							<p:column styleClass="center">
								<p:inputTextarea id="companyCommentsUpdate" value="#{companyBean.companyUpdate.comments}" rows="3" cols="19" />
							</p:column>
						</p:row>
						<f:facet name="footer">
				            <p:row>  
					            <p:column colspan="2" styleClass="center">
					                <p:commandButton id="updateCompanyFormSubmit" action="#{companyBean.update}" 
					                	value="#{i18n.update}" oncomplete="updateCompanyDlg.hide()"
					                	update=":companyForm:companyGrowl, :companyForm:dataTableAllCompany,
					                	:detailCompanyForm:panelDetailCompany" />					                	    	
								</p:column>
							</p:row>
		       			</f:facet>	
					</p:panelGrid>
				</p:dialog>
			</h:form>
		</div>
		
		<!-- **************************************** Person details **************************************** -->
			
		<div>	
			<h:form id="detailPersonForm" prependId="false">			
				<p:panel header="#{i18n.personDetailLabel}" id="panelDetailPerson">
					<h:panelGrid columns="2">					
						<h:outputLabel id="idPersonLabel" value="#{i18n.idPersonLabel}" />
						<h:outputText id="idPerson" value="#{personBean.personView.idPerson}" />
						
						<h:outputLabel id="lastNamePersonLabel"	value="#{i18n.lastNameLabel}" />
						<h:outputText id="lastNamePerson" value="#{personBean.personView.lastName}" />
						
						<h:outputLabel id="firstNamePersonLabel" value="#{i18n.firstNameLabel}" />
						<h:outputText id="firstNamePerson" value="#{personBean.personView.firstName}" />
						
						<h:outputLabel id="emailPersonLabel" value="#{i18n.emailLabel}" />
						<h:outputText id="emailPerson" value="#{personBean.personView.email}" />
						
						<h:outputLabel id="emailPersonLabel2" value="#{i18n.emailLabel2}" />
						<h:outputText id="emailPerson2" value="#{personBean.personView.email2}" />
						
						<h:outputLabel id="phonePersonLabel" value="#{i18n.phoneLabel}" />
						<h:outputText id="phonePerson" value="#{personBean.personView.phone}" />
						
						<h:outputLabel id="gsmPersonLabel" value="#{i18n.gsmLabel}" />
						<h:outputText id="gsmPerson" value="#{personBean.personView.gsm}" />
						
						<h:outputLabel id="commentsPersonLabel" value="#{i18n.commentsLabel}" />
						<h:outputText id="commentsPerson" value="#{personBean.personView.comments}" />
						
						<f:facet name="footer">
							<p:commandButton id="showUpdatePerson" value="#{i18n.update}" icon="ui-icon-wrench"
								action="#{personBean.toggleUpdate}" oncomplete="updatePersonDlg.show()"
								update=":updatePersonForm:updatePersonDialog" />
							<p:commandButton id="deletePersonSubmit" value="#{i18n.delete}" icon="ui-icon-trash"
								action="#{personBean.delete}" update=":companyForm:companyGrowl,
								:companyForm:dataTableAllCompany, :detailPersonForm:panelDetailPerson" />
						</f:facet>
					</h:panelGrid>	
				</p:panel>
			</h:form>
				
		<!-- **************************************** Dialog Person update **************************************** -->
				
			<h:form id="updatePersonForm" prependId="false">
				<p:dialog id="updatePersonDialog" 
					header="#{i18n.updatePersonLabel} #{personBean.personUpdate.lastName} #{personBean.personUpdate.firstName}"
					widgetVar="updatePersonDlg" dynamic="true" showEffect="clip" hideEffect="scale">			    	
					<p:panelGrid id="updatePersonPanel" styleClass="span91">  					    		        
					    <p:row>  
		        			<p:column> 
								<h:outputLabel id="lastNameLabelUpdate" for="lastNameUpdate"
									value="#{i18n.lastNameLabel} " />
							</p:column>
							<p:column styleClass="center">
								<h:inputText id="lastNameUpdate" value="#{personBean.personUpdate.lastName}">
									<f:passThroughAttribute name="required" value="true" />					
								</h:inputText>
							</p:column>
						</p:row>
						<p:row>  
		        			<p:column> 
								<h:outputLabel id="firstNameLabelUpdate" for="firstNameUpdate"
									value="#{i18n.firstNameLabel} " />
							</p:column>
							<p:column styleClass="center">
								<h:inputText id="firstNameUpdate" value="#{personBean.personUpdate.firstName}" />
							</p:column>
						</p:row>
						<p:row>  
		        			<p:column> 
								<h:outputLabel id="emailLabelUpdate" for="emailUpdate"
									value="#{i18n.emailLabel} " />
							</p:column>
							<p:column styleClass="center">
								<h:inputText id="emailUpdate" value="#{personBean.personUpdate.email}">
									<f:passThroughAttribute name="required" value="true" />	
									<f:passThroughAttribute name="type" value="email" />				
								</h:inputText>
							</p:column>
						</p:row>
						<p:row>  
		        			<p:column> 
								<h:outputLabel id="emailLabel2Update" for="email2Update"
									value="#{i18n.emailLabel2} " />
							</p:column>
							<p:column styleClass="center">
								<h:inputText id="email2Update"
									value="#{personBean.personUpdate.email2}" />
							</p:column>
						</p:row>
						<p:row>  
		        			<p:column> 
								<h:outputLabel id="phoneLabelUpdate" for="phoneUpdate"
									value="#{i18n.phoneLabel} " />
							</p:column>
							<p:column styleClass="center">
								<h:inputText id="phoneUpdate" value="#{personBean.personUpdate.phone}" />							
							</p:column>
						</p:row>
						<p:row>  
		        			<p:column> 
								<h:outputLabel id="gsmLabelUpdate" for="gsmUpdate"
									value="#{i18n.gsmLabel} " />
							</p:column>
							<p:column styleClass="center">
								<h:inputText id="gsmUpdate" value="#{personBean.personUpdate.gsm}" />							
							</p:column>
						</p:row>
						<p:row>  
		        			<p:column> 
								<h:outputLabel id="personCommentsLabelUpdate" for="personCommentsUpdate"
									value="#{i18n.commentsLabel} " />
							</p:column>
							<p:column styleClass="center">
								<p:inputTextarea id="personCommentsUpdate" value="#{personBean.personUpdate.comments}" rows="3" cols="19" />
							</p:column>
						</p:row>				
						<f:facet name="footer">
				            <p:row>  
					            <p:column colspan="2" styleClass="center">
					                <p:commandButton id="updatePersonFormSubmit" action="#{personBean.update}" 
					                	value="#{i18n.update}" oncomplete="updatePersonDlg.hide()"
					                	update=":companyForm:companyGrowl, :companyForm:dataTableAllCompany,
					                	:detailPersonForm:panelDetailPerson" />					                	    	
								</p:column>
							</p:row>
		       			</f:facet>				
					</p:panelGrid>				
				</p:dialog>			
			</h:form>
		</div>
	</div>
		
	<!-- ****************************************************************************************** -->
		
	</ui:define>	
</ui:composition>
</html>